package com.szc.fs.util;

/**
 * @title: ResultCodeEnum
 * @Author Liuyang Tian
 * @Date: 2023/2/16 19:07
 * @Version 1.0
 */
public enum ResultCodeEnum {
    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(202, "服务异常"),

    SIGN_ERROR(300, "签名错误"),

    PAY_PASSWORD_ERROR(401, "参数错误"),
    DATA_ERROR(400, "参数错误"),
    REPEAT_ERROR(402, "重复提交")
            ;

    private Integer code;

    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
